<template>
  <div id="app">
    <el-container class="container">
      <el-header class="header">
        <NavTop class="head"></NavTop>
      </el-header>
      <el-main class="container-main">
        <router-view class="main"></router-view>
      </el-main>
    </el-container>
  </div>
</template>

<script>
import NavTop from "@/components/nav-top"
export default {
  name: 'App',
  components: {
    NavTop
  }
}
</script>

<style>
* {
  padding: 0;
  margin: 0;
}

.container {
  height: 100%;
}

.container-main {
  height: calc(100% - 56px);
  width: 100%;
  background-image: url(https://cdn.acwing.com/static/web/img/background.png);
}

.header {
  box-shadow: -7px 3px 10px 0 rgba(0, 0, 0, .06);
  height: 56px !important;
}

.github-markdown-body {
  padding: 0 !important;
}

@media screen and (max-width:1169px) {}

@media screen and (min-width:1170px) {
  .main {
    max-width: 1170px;
    margin: 0 auto;

  }

  .head {
    width: 1170px;
    margin: 0 auto;
  }

  .footer {
    width: 80%;
    margin: 0 auto;
  }

}
</style>
